﻿using RxxApi.Model.RootTkey;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RxxApi.Model.Entity;

[SugarTable("SysMenu", "菜单表")]
public class SysMenu : RootEntity
{
    public SysMenu()
    {

    }
    /// <summary>
    /// 上一级菜单（0表示上一级无菜单）
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public long PId { get; set; }
    /// <summary>
    /// 菜单显示名（如用户页、编辑(按钮)、删除(按钮)）
    /// </summary>
    [SugarColumn(Length = 50, IsNullable = false)]
    public string Name { get; set; }
    /// <summary>
    /// 菜单执行Action名
    /// </summary>
    [SugarColumn(Length = 50, IsNullable = false)]
    public string Code { get; set; }
    /// <summary>
    /// 菜单类型（目录/菜单/按钮）
    /// </summary>
    [SugarColumn(IsNullable = false)]
    public int Type { get; set; }
    /// <summary>
    /// 菜单图标
    /// </summary>
    [SugarColumn(Length = 100, IsNullable = false)]
    public string Icon { get; set; }
    /// <summary>
    /// 排序
    /// </summary>
    public int OrderSort { get; set; }
}
